package org.zdc.damasteel;
import nme.geom.Point;

interface IConstraintedVisual implements IVisual
{
	/**
	 * 期望宽
	 */
	public var preferredWidth(get_preferredWidth, set_preferredWidth):Float;
	
	/**
	 * 期望高
	 */
	public var preferredHeight(get_preferredHeight, set_preferredHeight):Float;
	
	/**
	 * 尺寸
	 * @return
	 */
	public function getSize():Point;
	public function setSize(size:Point):Void;
	
	/**
	 * 组件父容器
	 */
	public var cparent(get_cparent, null):Container;
	
	/**
	 * 布局
	 */
	public function layout():Void;
}